<div class="cont_tit">
	<div class="cont_tit_1">
		<span class="sortH">» <?php echo $pageTitle; ?></span>
		<div class="clear"><?php echo (isset($pageLink)?$pageLink:'');?></div>
	</div>
</div>
<form method="post">
<input  type="hidden" name="uid" value="<?php echo $uid?>" />
<input  type="hidden" name="gid" value="<?php echo $gid?>" />
<?php echo $function_table;?>
<div style="margin:10px;text-align:center">
<input type="submit" value="确定" />
</div>
</form>

<script type="text/javascript">
$(function(){
	<?php
	if(is_array($fids))
	{
		foreach($fids as $v)
		{
			echo '$("#item_'.$v.'").attr("checked", true);';
			echo "\n";
		}
	}
	?>
	
	$('td').dblclick(function(){
		var bool;
		$(this).find('input').each(function(i){
			bool = $(this).attr('checked') ? false : true;
			$(this).attr('checked', bool);
		});
		return false;
	});
});
</script>
